package com.example.demo.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.entity.VeVe;
import com.example.demo.service.VeVeService;

@RestController
@RequestMapping("ve")
public class VeVeController {

	@Resource
	private VeVeService veVeService;
	@RequestMapping("insert")
	public VeVe insert(VeVe veve) {
		return veVeService.insert(veve);
	}
	@RequestMapping("find")
	public List<VeVe> findAll() {
		if(1==2)throw new RuntimeException("出错了");
			

		return veVeService.findAll();
	}
}
